/**
 * 
 */
package com.lvan.bean;

/**
 * @author Stern He<br>
 * 2013-9-12<br>
 * @version 1.0.0.0 
 */
public class BaseException extends Exception{
    private static final long serialVersionUID = -4575680670057737025L;
    private String errorCode;
    private String message;
    private String title;
    private String op;
    public BaseException() {
    }
    public BaseException(String errorCode,String message) {
        this.errorCode = errorCode;
        this.message = message;
    }
    public BaseException(String title,String errorCode,String message) {
        this.title = title;
        this.errorCode = errorCode;
        this.message = message;
    }
    public BaseException(String title,int errorCode,String message) {
        this.title = title;
        this.errorCode = String.valueOf(errorCode);
        this.message = message;
    }
    public BaseException(String title,int errorCode,String message,String op) {
        this.title = title;
        this.errorCode = String.valueOf(errorCode);
        this.message = message;
        this.op = op;
    }
    @Override
    public String getMessage() {
        return message;
    }
    public String getErrorCode() {
        return errorCode;
    }
    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
	public String getOp() {
		return op;
	}
	public void setOp(String op) {
		this.op = op;
	}
    
}
